
<!--全局设置-->

<!--顶部top栏-->
<div class="topbar-container" ng-include="'views/includes/topbar.html'" ng-init="titleSection='Global preferences'; closeToHome = true; noColor = true"></div>


<!--控制器类 与实例化-->
<div class="content preferences" ng-controller="preferencesGlobalController as prefGlobal" ng-init="prefGlobal.init()">

	<!--设备设置-->
	<h4 translate>Basic Settings</h4>
	<ul class="no-bullet m0 ">
		<!-- Device name   -->
		<li ng-click="$root.go('preferencesGlobal.preferencesDeviceName')">
			<div class="right text-gray">
				{{prefGlobal.deviceName}}
				<i class="icon-arrow-right3 size-14"></i>
			</div>
			<div class="size-14" translate>Device name</div>
		</li>

		<!-- Language 设置 -->
		<li ng-click="$root.go('preferencesGlobal.preferencesLanguage')">
			<div class="right text-gray">
				{{prefGlobal.currentLanguageName|translate}}
				<i class="icon-arrow-right3 size-14"></i>
			</div>
			<div class="size-14" translate>Language</div>
		</li>
	</ul>
	<!--设备设置 结束-->


	<!-- 设备地址 -->
	<h4 translate>Device address</h4>
	<ul class="no-bullet m0 enable_text_select">
		<li>
			<div class="size-14" >{{prefGlobal.myDeviceAddress}}</div>
		</li>
	</ul>
	<!--设备地址 结束-->


	<!-- 密码保护  -->
	<h4 translate>Spending Restrictions</h4>
	<ul class="no-bullet m0">
		<li>
			<switch id="network-name" name="encrypt" ng-model="encrypt" class="green right"></switch>
			<div class="size-14"  translate>Request Password</div>
		</li>
	</ul>
	<!--密码保护  结束-->


	<!-- 备份口令 -->
	<h4></h4>
	<ul class="no-bullet m0">
		<li ng-click="$root.go('preferencesGlobal.backup')" ng-hide="index.isPrivKeyExternal">
			<div class="right text-gray">
				<span class="text-warning" ng-show="index.needsBackup">
					<i class="fi-alert"></i>
					<span translate>Still not done</span>
				</span>

				<i class="icon-arrow-right3 size-14 text-gray"></i>
			</div>

			<div class="size-14" translate>Backup wallet seed</div>
		</li>
	</ul>
	<!-- 备份口令 口令 -->


	<!-- 使用口令恢复钱包 -->
	<ul class="no-bullet m0">
		<li ng-click="$root.go('preferencesGlobal.recoveryFromSeed')" ng-hide="index.isPrivKeyExternal">
			<div class="right text-gray">
				<i class="icon-arrow-right3 size-14 text-gray"></i>
			</div>
			<div class="size-14" translate>Recovery from seed</div>
		</li>
	</ul>
	<!-- 使用口令恢复钱包 结束 -->


	<!-- 关于 TrustNote  -->
	<h4></h4>
	<ul class="no-bullet m0">
		<li ng-click="$root.go('preferencesGlobal.preferencesAbout')">
			<i class="icon-arrow-right3 size-14 right text-gray"></i>
			<div translate>About TrustNote</div>
		</li>
	</ul>
	<h4></h4>
	<!-- 关于 TrustNote 结束 -->
</div>
<div class="extra-margin-bottom"></div>





<!-- TrustME URI -->
<!--<li ng-click="$root.go('preferencesGlobal.preferencesHub')">-->
<!--<div class="right text-gray"> {{prefGlobal.hub}} <i class="icon-arrow-right3 size-14"></i></div>-->
<!--<div translate>TrustME URI</div>-->
<!--</li>-->
<!-- TOR -->
<!--<li ng-show="!index.isCordova" ng-click="$root.go('preferencesGlobal.preferencesTor')">-->
<!--<div class="right text-gray"> <span translate>{{prefGlobal.torEnabled?'On':'Off'}}</span> <i class="icon-arrow-right3 size-14"></i> </div>-->
<!--<div translate>TOR</div>-->
<!--</li>-->

<!-- Unit for notes -->
<!--<li ng-click="$root.go('preferencesGlobal.preferencesUnit')">-->
<!--<div class="right text-gray"> {{prefGlobal.unitName}} <i class="icon-arrow-right3 size-14"> </i>  </div>-->
<!--<div translate>Unit for notes</div>-->
<!--</li>-->
<!-- blackbytes 单位 -->
<!-- 	  <li ng-click="$root.go('preferencesGlobal.preferencesBbUnit')">
      <div class="right text-gray"> {{prefGlobal.bbUnitName}} <i class="icon-arrow-right3 size-24"></i> </div>
      <div translate>Unit for blackbytes</div>
    </li> -->

<!-- 开启消息通知推送 -->
<!--   <div ng-show="index.usePushNotifications">
    <h4>开启消息通知推送</h4>
    <ul class="no-bullet m0">
      <li>
        <switch id="push-notifications" name="pushNotifications" ng-model="pushNotifications" class="green right"></switch>
        <div translate>Enable push notifications</div>
      </li>
    </ul>
  </div> -->

<!-- Witnesses公证人 -->
<!-- <h4></h4>
<ul class="no-bullet m0">
  <li ng-click="$root.go('preferencesGlobal.preferencesWitnesses')"> <i class="icon-arrow-right3 size-24 right text-gray"></i> <div translate>Witnesses</div> </li>
</ul> -->

<!-- Full backup	 -->
<!--<ul class="no-bullet m0" ng-hide="prefGlobal.isIOS == 'ios'">-->
<!--<li ng-click="$root.go('preferencesGlobal.export')" ng-hide="index.isPrivKeyExternal">-->
<!--<div class="right text-gray">-->
<!--<i class="icon-arrow-right3 size-14 text-gray"></i>-->
<!--</div>-->
<!--<div class="size-14" translate>Full backup</div>-->
<!--</li>-->
<!--</ul>-->
<!-- Restore from full backup	 -->
<!--<ul class="no-bullet m0" ng-hide="prefGlobal.isIOS == 'ios'">-->
<!--<li ng-click="$root.go('preferencesGlobal.import')" ng-hide="index.isPrivKeyExternal">-->
<!--<div class="right text-gray">-->
<!--<i class="icon-arrow-right3 size-14 text-gray"></i>-->
<!--</div>-->
<!--<div class="size-14" translate>Restore from full backup</div>-->
<!--</li>-->
<!--</ul>-->
<!--钱包备份结束-->